package com.hpeu_01.day0111;

public class E {
    public static void main(String[] args) {
        Monkey monkey = new Monkey();
        monkey.speak();
        People people = new People();
        people.speak();
        people.think();
    }
}
class Monkey{
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Monkey(String message){
        this.message = message;
    }

    public Monkey() {
    }

    public void speak(){
        System.out.println("咿咿呀呀......");
    }
}
class People extends Monkey{
    public People(String s) {
        super(s);
    }

    public People() {
    }

    @Override
    public void speak() {
        System.out.println("小样的，不错嘛！会说话了！");
    }
    public void think(){
        System.out.println("别说话！认真思考！");
    }
}
